/**
 * Created by banzhenyu on 2016/10/27. y1l3k5u7y9u
 */
var crypto = require('crypto');

module.exports = {

    md5(data){
        var Buffer = require("buffer").Buffer;
        var buf = new Buffer(data);
        var str = buf.toString("binary");
        var crypto = require("crypto");
        return crypto.createHash("md5").update(str).digest("hex");
    },

}
